spi-bcm2835: Support pin groups other than 7-11
authorPhil Elwell <phil@raspberrypi.org>
Wed, 24 Jun 2015 13:10:44 +0000 (14:10 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:44:48 +0000 (15:44 +0100)
commit3baadbb2917c66dea77f1ce88ca8d95c79585636
treee75750d2e4933ff4b332108335f1ee2e9aa352c3
parent97fcefd3bbb5563921edd60ff6f912fe34a9f706
spi-bcm2835: Support pin groups other than 7-11

The spi-bcm2835 driver automatically uses GPIO chip-selects due to
some unreliability of the native ones. In doing so it chooses the
same pins as the native chip-selects would use, but the existing
code always uses pins 7 and 8, wherever the SPI function is mapped.

Search the pinctrl group assigned to the driver for pins that
correspond to native chip-selects, and use those for GPIO chip-
selects.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/spi/spi-bcm2835.c